#pragma once
#include "explorer_window.h"


// CDlgCheckOnline dialog

class CDlgCheckOnline : public CDialog
{
	DECLARE_DYNAMIC(CDlgCheckOnline)

public:
	CDlgCheckOnline(CWnd* pParent = NULL);   // standard constructor
	virtual ~CDlgCheckOnline();

	virtual BOOL OnInitDialog();
	virtual void OnOK();
	virtual void OnCancel();
	afx_msg void OnBnClickedButtonRecheck();
	afx_msg void OnBnClickedButtonPubmed();
	afx_msg void OnEnChangeEditId();
	void DocumentCompleteExplorer(LPDISPATCH pDisp, VARIANT* URL);

// Dialog Data
	enum { IDD = IDD_DIALOG_CHECK_ONLINE };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
	DECLARE_EVENTSINK_MAP()

private:
	CString GetSource(void);
	BOOL GetRequestTitle(CString szRequest, CString *pszTitle, CString *pszSource);
	INT SetDefaultButton(const DWORD nNewId, BOOL bSetFocus=TRUE);

public:
	LONG m_nStaffID;
	INT m_nCurrentLibrary;
	LONG m_nItemID;
	CString m_szUID;
	CString m_szTitle;
	CString m_szSource;
	CString m_szRequest;
	CStringArray *m_pszaLibrary;
	CExplorer_window m_ctrlBrowser;	
	BOOL m_bSendLibrary;
};
